package com.redfox.newapp.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

import com.redfox.newapp.R;

public class WebActivity extends AppCompatActivity {
    private final String TAG = "WebActivity";
    private String url;
    private WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web);

        Bundle bundle = this.getIntent().getExtras();
        if (bundle != null) {
            url = bundle.getString("url");
        }

        webView = (WebView) findViewById(R.id.web);
        webView.loadUrl(url);

    }
}
